<?php

namespace app\api\validate;

use think\Validate;

class Card extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'name' => 'require',
        'bank_name' => 'require',
        'card_num' => 'require|max:19',



    ];
    /**
     * 提示消息
     */
    protected $message = [
        'name.require' => '请输入持卡人',
        'bank_name.require' => '请输入开户行！',
        'card_num.require' => '请输入银行卡号！',
        'card_num.max' => '银行卡号不能超过19位！',
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => ['name','bank_name','card_num'],
    ];
    
}
